package com.woniuxy.base.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.base.model.entity.BaseCategory;
import com.woniuxy.base.model.entity.BaseCategoryRecord;

import java.util.List;

public interface BaseCategoryService {

    Page<BaseCategory> getAll(int current, int size);

    Boolean update(BaseCategory baseCategory, String account);

    Boolean add(BaseCategory baseCategory);

    Page<BaseCategory> conditionSearch(BaseCategory baseCategory, Integer current, Integer size);

    Page<BaseCategory> keywordSearch(String keyword, Integer current, Integer size);

    List<BaseCategoryRecord> detail(Integer categoryId);
}
